-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netstat: Fix duplicate keys in libxo output #1331
Conversation
Duplicate keys in libxo output have been given a unique name. PR: 244589, 254672 Pull Request: freebsd#1331
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with the change shutdown-ack-timer
. That can be committed fast if you want ( and I'd recommend you ) to split this change into two parts.
@@ -711,7 +711,7 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) | |||
"secret\n"); | |||
p(sctps_timopathmtu, "\t\t{:pmtu-timer/%ju} " | |||
"{N:/PMTU timer%s fired}\n"); | |||
p(sctps_timoshutdownack, "\t\t{:shutdown-timer/%ju} " | |||
p(sctps_timoshutdownack, "\t\t{:shutdown-ack-timer/%ju} " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
The current libxo output uses the "dropped-packets" key for both incoming and outgoing packets. This commit distinguishes between the two by adding an "in" and "out" suffix. The original "dropped-packets" key is kept for backwards compatibility for now. PR: 244589 Pull request: freebsd#1331
The key "shutdown-timer" was present twice in the libxo output. The second occurence of "shutdown-time" has been renamed to "shutdown-ack-timer". PR: 254672 Pull request: freebsd#1331
Thanks for reviewing. I have split the commit into two seperate commits. |
usr.bin/netstat/if.c
Outdated
@@ -501,8 +501,11 @@ intpr(void (*pfunc)(char *), int af) | |||
IFA_STAT(ipackets), link|network, 1); | |||
show_stat("lu", nerr_len, "received-errors", IFA_STAT(ierrors), | |||
link, 1); | |||
/* Below is kept for backwards compatibility. Will be removed in the future. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to s/in the future/before FreeBSD 16/
And question: do we need to bump the version for this? libxo man pages are kinda silent about when to do that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@bsdimp IMO, for the fixes, |
The key "shutdown-timer" was present twice in the libxo output. The second occurence of "shutdown-time" has been renamed to "shutdown-ack-timer". PR: 254672 Pull request: freebsd#1331
netstat didn't have version information yet. This is added in 0d2e74b. |
The current libxo output uses the "dropped-packets" key for both incoming and outgoing packets. This commit distinguishes between the two by adding an "in" and "out" suffix. The original "dropped-packets" key is kept for backwards compatibility for now. PR: 244589 Reviewed by: imp, zlei Pull Request: freebsd#1331
The key "shutdown-timer" was present twice in the libxo output. The second occurence of "shutdown-time" has been renamed to "shutdown-ack-timer". PR: 254672 Reviewed by: imp, zlei Pull Request: freebsd#1331
NDFREE_PNBUF should be called after checking the return value of vn_open(), and should only be called once. Reviewed by: imp, zlei, Kornel Dulęba <[email protected]>, Elliott Mitchell Pull Request: freebsd#1338
i2c -sv or i2c -rv prints an uninitialized field i2c_opt.addr. Suppress the verbose message entirely for scan and reset, where it provides no information, and zero initialize the field. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279261 Reviewed by: imp Pull Request: freebsd#1345
I've had to (partially) revert this pull request. For the bits I reverted, please resubmit as a new PR. Thanks! |
Resolves Bug 254672 and Bug 244589